package com.itheima01;

import java.util.concurrent.atomic.AtomicInteger;

public class Test04 {
    private static AtomicInteger integer = new AtomicInteger();

    public static void main(String[] args) {

        for (int i = 0; i < 100; i++) {
            new Thread(() -> {
                for (int j = 0; j < 100; j++) {
                    int count = integer.incrementAndGet();
                    System.out.println("送出第" + count + "个");
                }
            }).start();
        }
    }
}
